﻿package java_45;

public class code097 {
    public static void main(String[] args) {
    	int way =1;
    	int k =0;
    	for (int i =1 ; i <=20; i++) {
    		for (int j = 0; j <=33; j++) {
				
    			k=100-i-j;
    			if (k%3==0&&(5*i+3*j+k/3==100)) {
					System.out.println("[买法"+way++ +"]");
					System.out.println("公鸡:"+i+"   母鸡:"+j+"   雏鸡:"+k);
				}
			}
		}
        
		
    }